<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
	
	
	 <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">生成数量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code_num]"  type="number" value="1">
        </div>
    </div>
	
    <div class="form-group" hidden="hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code]"  type="text" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-group_name" data-rule="required" class="form-control" name="row[group_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-description" data-rule="required" class="form-control" name="row[description]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount]" type="number">
        </div>
    </div>
	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">最低使用金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount_min]" type="number"
			value='0'
			>
        </div>
    </div>
	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">最高使用金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount_max]" type="number" value='0'>
        </div>
    </div>
	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">有效时间段:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-valid_date" data-rule="required" placeholder ='30:day' class="form-control"
			 name="row[valid_date]" 
			type="text" value="">
        </div>
    </div>
	<div class="form-group" style=" padding-left: 100px;">有效时间段格式[数字,单位]1:hour , 1:minute,1:day, 1:mouth ,1:year</div>
	
	
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">失效时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-date_end" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[date_end]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group" hidden="hidden" >
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_use')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_use" data-rule="required" class="form-control selectpicker"    name="row[is_use]">
                {foreach name="isUseList" item="vo"}
                    <option value="{$key}" {in name="key" value="否"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" hidden="hidden"  >
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_exchange')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_exchange" data-rule="required" class="form-control selectpicker"   name="row[is_exchange]">
                {foreach name="isExchangeList" item="vo"}
                    <option value="{$key}" {in name="key" value="否"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
